package model;

/**
 * Category.java
 * Purpose: Represents a category.
 * 
 * @author Jan Harm van Enk
 * @version 0.1 10/01/2012
 */

public class Category {
	/* Identifies the category */
	private long id;
	/* Name of the category*/
	private String name;
	
	/** Constructs a new category */
	public Category(){
	}
	
	/** Constructs a new category */
	public Category(String name) {
		this.name = name;
	}
	
	/** Returns id of the category*/
	public long getId(){
		return this.id;
	}
	
	/** Sets the id of the category */
	public void setId(long id) {
		this.id = id;
	}
	
	/** Returns the name of the category */
	public String getName(){
		return this.name;
	}
	
	/** Sets the name of the category */
	public void setName(String name){
		this.name = name;
	}
	
	/** Returns a string representation of the category */
	@Override
	public String toString() {
		return String.format("%s", this.name);
	}
}
